package com.tweetbook.entity.Account;

import com.tweetbook.Persistence.AccountServer;

public class Account {

	private int account_id;
	private String email;
	private String passwd;
	private String name;
	AccountServer as ;
	
	
	//Getter Setter methods
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAccount_id() {
		return account_id;
	}
	
	public void setAccount_id(int account_id){
		this.account_id=account_id;
	}
	
	public void addAccount(String name,String passwd,String email){
		as = new AccountServer(this);
		as.addAccount();
	}

	public void checkAcount(){
		as = new AccountServer(this);
		as.retrieveAccount();
	}
	
}
